package com.cmcc.pp.ui.workorder;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.cmcc.pp.R;
import com.cmcc.pp.base.BActivity;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by ABC on 2017/12/26.
 * 工单查询结果
 */

public class QueryResultsForWorkOrder extends BActivity {
    @Bind(R.id.workorder_lin_result)
    LinearLayout workorderLinResult;
    @Bind(R.id.tv_null)
    TextView tvNull;

    @Override
    protected boolean getHasTitle() {
        return true;
    }

    @Override
    public int getContentLayoutId() {
        return R.layout.activity_queryresultsforworkorder;
    }

    @Override
    public void initView(Bundle savedInstanceState) {
        getHeader().setTitle(R.string.str_queryresults);
    }

    @Override
    public void loadData() {

    }


    @OnClick({
            R.id.workorder_lin_result
    })
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.workorder_lin_result:
                openDetails();
                break;
        }
    }

    //工单查询结果
    private void openDetails() {
        Intent detailsIntent = new Intent(this,WorkOrderDetailsActivity.class);
        startActivity(detailsIntent);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }
}
